import Vue from 'vue'
import App from './App.vue'

import router from './router'
// 引入 element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 引入 markdown 组件
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

import moment from 'moment';
Vue.prototype.$moment = moment;

// 使用插件
Vue.use(ElementUI);
Vue.use(mavonEditor);
// 关闭生产提示
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = new Vue() // 安装全局事件总线
  }
}).$mount('#app')
